import request from "@/utils/request";
export function getData(method, data) {
  if (method == "post") {
    return request({
      url: "/data/y",
      method: method,
      data,
    });
  } else {
    return request({
      url: "/data/y",
      method: method,
      params: data,
    });
  }
}

/**
 * 
 * @param {*} time 1 2 3
 */
export function getDataYbed(data) {
  return request({
    url: "/data/ybed",
    method: "get",
    params: data,
  });
}

/**
 * 
 * @param {*} time 
 */
export function getDataYwc(data) {
  return request({
    url: "/data/ywc",
    method: "get",
    params: data,
  });
}